package Adapter;

public class AudioPlayer implements MediaPlarer {
    MediaAdapter mediaAdapter;

    @Override
    public void play(String audioType, String filename) {
        if (audioType.equalsIgnoreCase("music")){
            System.out.println("Play music"+filename);
        }
        else if (audioType.equalsIgnoreCase("movie")){
            mediaAdapter = new MediaAdapter(audioType);
            mediaAdapter.Play(audioType,filename);
        }
    }
}
